package cn.dubito.springboot.learning.enums;

import lombok.Getter;

/**
 * @author liliang
 * @description:
 * @date 2018/1/11.
 */
@Getter
public enum  OrderStatusEnum {
    /**
     * 新订单
     */
    NEW(0,"新订单"),
    /**
     * 订单完成
     */
    FINISHED(1,"完结"),
    /**
     * 取消订单
     */
    CANCEL(2,"已取消")
    ;
    private Integer code;

    private String message;

    OrderStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
